<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8"/>
        <title><?php echo CHtml::encode($this->pageTitle); ?></title>
        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->baseUrl; ?>/css/admin/base.css" />
    </head>
    <body data-spy="scroll" data-target=".subnav" data-offset="0" data-twttr-rendered="true">
        
        <div class="subnav subnav-fixed">
            <div class="btn-toolbar">
                <div class="btn-group">
                    <?php echo CHtml::link('<i class="icon-user"></i> My account',array('user/admin'),array('class'=>'btn')); ?>
                    <a class="btn dropdown-toggle" data-toggle="dropdown" href="#"><span class="caret"></span></a>
                    <ul class="dropdown-menu">
                        <li><?php echo CHtml::link('<i class="icon-lock"></i> Change Password',array('user/admin')); ?></li>
                        <li><?php echo CHtml::link('<i class="icon-pencil"></i> Update Profile',array('user/admin')); ?></li>
                    </ul>
                </div>
                <div class="btn-group">
                    <?php echo CHtml::link('<i class="icon-off"></i> Logout',array('site/logout'),array('class'=>'btn', 'id'=>'btnLogout')); ?>
                </div>
            </div>
            <!-- /Toolbar -->

            <?php if(isset($this->breadcrumbs)):?>
                <?php $this->widget('zii.widgets.CBreadcrumbs', array(
                    'separator'=> '<em>»</em>',
                    'links'=> $this->breadcrumbs, // Property 'breadcrumbs' is defined in the view files.
                    'homeLink'=>CHtml::link('<i class="icon-home"></i> Home', $this->createUrl('site/dashboard')),
                )); ?>
            <?php endif; ?>
            <!-- /Breadcrumbs -->
        </div>
        
        <div id="main" class="view-cont">
            <div class="view-inner">
                <?php echo $content; ?>
            </div>
        </div>

        <?php
            $cs = Yii::app()->clientScript;
            $cs->registerCoreScript('twitter.bootstrap');
            $cs->registerCssFile(Yii::app()->baseUrl.'/css/admin/bootstrap.css', 'screen',CClientScript::POS_HEAD);
            //$cs->registerScriptFile(Yii::app()->baseUrl.'/js/widgets.js', CClientScript::POS_END);
            $cs->registerScriptFile(Yii::app()->baseUrl.'/js/app.js', CClientScript::POS_END);
        ?>
    </body>
</html>         
